import Sprite from '../base/Sprite'
import DataStore from '../base/DataStore'

export default class StartButton extends Sprite {
  constructor() {
    const image = Sprite.getImage('startButton')
    const dataStore = DataStore.getInstance()
    super(
      image,
      0,
      0,
      image.width,
      image.height,
      (dataStore.screenWidth - image.width) / 2,
      (dataStore.screenHeight - image.height) / 2.5,
      image.width,
      image.height
    )
  }
}